<template>
 <!-- 整体容器 -->
  <div class="job-board-container">

   <div class="job-board-container">
    <!-- 顶部导航区域 -->
    <header class="top-nav">
      <div class="nav-inner">
        <div class="left-section">
          <div class="tab recommend-tab" :class="{ active: currentTab === '推荐' }" @click="currentTab = '推荐'">推荐</div>
          <div class="divider">|</div>
        </div>

        <div class="search-section">
          <el-input
            v-model="query.keyword"
            placeholder="搜索职位、公司"
            clearable
            class="search-input"
            prefix-icon="Search"
            @keyup.enter="getJobList"
          />
          <el-button class="map-btn" @click="openMap">
            <el-icon class="map-icon"><Location /></el-icon>
            地图
          </el-button>
          <el-button type="primary" class="search-btn" @click="getJobList">搜索</el-button>
        </div>
      </div>
    </header>

    <!-- 筛选条件区域 -->
    <div class="filter-bar">
      <div class="city-picker">
        <!-- 触发按钮 -->
        <el-button
          type="link"
          @click="openCityDialog"
          class="current-city"
        >
          {{ currentCity || '全国' }}
          <el-icon class="arrow-icon"><ArrowDown /></el-icon>
        </el-button>
      </div>

      <div class="filter-inner">
        <div class="filter-item">
          <el-select
            v-model="query.type"
            placeholder="求职类型"
            clearable
            class="filter-select"
            @change="getJobList"
          >
            <el-option :key="0" label="不限" value="0" />
            <el-option :key="1" label="兼职" value="1" />
            <el-option :key="2" label="全职" value="2" />
          </el-select>
        </div>

        <div class="filter-item">
          <el-select
            v-model="query.working"
            placeholder="工作经验"
            clearable
            class="filter-select"
            @change="getJobList"
          >
            <el-option :key="0" label="经验不限" value="0" />
            <el-option :key="1" label="在校生" value="1" />
            <el-option :key="2" label="应届生" value="2" />
            <el-option :key="3" label="1-3年" value="3" />
            <el-option :key="4" label="3-5年" value="4" />
            <el-option :key="5" label="5年以上" value="5" />
          </el-select>
        </div>

        <div class="filter-item">
          <el-select
            v-model="query.education"
            placeholder="学历要求"
            clearable
            class="filter-select"
            @change="getJobList"
          >
            <el-option :key="0" label="不限" value="不限" />
            <el-option :key="1" label="初中及以下" value="初中及以下" />
            <el-option :key="2" label="中专" value="中专" />
            <el-option :key="3" label="高中" value="高中" />
            <el-option :key="4" label="大专" value="大专" />
            <el-option :key="5" label="本科" value="本科" />
            <el-option :key="6" label="硕士" value="硕士" />
            <el-option :key="7" label="博士" value="博士" />
          </el-select>
        </div>

        <div class="filter-item clear-btn">
          <el-button type="link" @click="clearFilters">清空</el-button>
        </div>
      </div>
    </div>


<!--    城市弹框-->
     <!-- 城市选择弹框 -->
    <el-dialog
      v-model="dialogVisible"
      title="请选择城市"
      width="500px"
      :close-on-click-modal="true"
    >
      <!-- Tabs 导航 -->
      <el-tabs
        v-model="activeTab"
        class="city-tabs"
        @tab-click="handleTabClick"
      >
        <el-tab-pane label="热门城市" name="hot"></el-tab-pane>
        <el-tab-pane label="ABCDE" name="A"></el-tab-pane>
        <el-tab-pane label="FGHJ" name="F"></el-tab-pane>
        <el-tab-pane label="KLMN" name="K"></el-tab-pane>
        <el-tab-pane label="PQRST" name="P"></el-tab-pane>
        <el-tab-pane label="WXYZ" name="W"></el-tab-pane>
      </el-tabs>

      <!-- 城市列表 -->
      <div class="city-list">
        <div
          v-for="(city, index) in filteredCities"
          :key="index"
          class="city-item"
          @click="selectCity(city)"
        >
          {{ city }}
        </div>
      </div>
    </el-dialog>
  </div>

  <!-- 主容器：左右分栏 -->
  <div class="dashboard">
    <!-- 左侧列表 -->
    <div class="sidebar">
      <!-- 职位列表 -->
      <div class="job-list" v-if="jobLists">
        <div
          v-for="(job, index) in jobLists"
          :key="job.id"
          class="job-card"
          :class="{ 'hover-scale': isHoveringIndex === index }"
          @mouseenter="handleMouseEnter(index)"
          @mouseleave="handleMouseLeave(index)"
          @click="selectJob(job.id, index)"
        >
          <div class="job-info">
            <div class="job-header">
              <h3 class="job-title">{{ job.title }}</h3>
              <span class="salary-tag">{{ job.money }}</span>
            </div>
            <div class="job-meta">
              <span class="meta-item">
                <el-icon class="meta-icon"><School /></el-icon>
                {{ job.education }}
              </span>
              <span class="meta-item">
                <el-icon class="meta-icon"><CollectionTag /></el-icon>
                {{ job.label || '暂无标签' }}
              </span>
            </div>
            <div class="company-info">
              <img
                :src="job.company.logo || 'https://picsum.photos/100/100'"
                alt="Company Logo"
                class="company-logo"
              />
              <div class="company-details">
                <div class="company-name ellipsis">{{ job.company.name }}</div>
                <div class="company-desc ellipsis">{{ job.company.description }}</div>
              </div>
            </div>
            <!-- 定位城市信息 -->
            <div class="location-info">
              <el-icon class="location-icon"><Location /></el-icon>
              <span class="city-text">{{ job.city.name }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 右侧详情 -->
    <div class="main">
      <!-- 无选中状态 -->
      <div v-if="!selectedJob" class="empty-state">
        <el-empty description="请选择一个职位查看详情" />
      </div>

      <!-- 详情内容 -->
      <div v-else class="detail">
        <!-- 顶部提示 -->
        <div class="top-banner">
          <div class="banner-content">
            <div class="banner-text">
              <h3 class="banner-title">完善信息提醒</h3>
              <p class="banner-desc">完善基础信息，推荐更准确岗位</p>
            </div>
            <el-button type="primary" size="small">完善简历</el-button>
          </div>
        </div>

        <!-- 职位头部 -->
        <div class="detail-header">
          <div class="header-left">
            <h1 class="job-title">{{ selectedJob.title }}</h1>
            <div class="salary-box">
              <span class="salary-value">{{ selectedJob.money }}</span>
            </div>
            <div class="meta-info">
              <span class="meta-item">
                <el-icon class="meta-icon"><Location /></el-icon>
                {{ selectedJob.city.name }}
              </span>
              <span class="meta-item">
                <el-icon class="meta-icon"><School /></el-icon>
                {{ selectedJob.education }}
              </span>
              <span class="meta-item">
                <el-icon class="meta-icon"><CollectionTag /></el-icon>
                {{ selectedJob.label || '暂无标签' }}
              </span>
            </div>
          </div>
          <div class="header-right">
            <el-button type="success" icon="Star" size="small">收藏</el-button>
            <el-button type="primary" icon="Message" size="small">立即沟通</el-button>
          </div>
        </div>

        <!-- 职位描述 -->
        <div class="section">
          <h2 class="section-title">职位描述</h2>
          <div class="tags">
            <el-tag v-for="tag in [selectedJob.education, selectedJob.company.name, selectedJob.jobcate.name]" :key="tag" type="info" size="small">
              {{ tag }}
            </el-tag>
          </div>
          <div class="desc-content">
            <div class="desc-item">工作周期：{{ selectedJob.work_period || '长期兼职' }}</div>
            <div class="desc-item">每周工期：{{ selectedJob.weekly_duration || '5天及以上' }}</div>
            <div class="desc-item">工作时间：{{ selectedJob.work_time || '不限' }}</div>
            <div class="desc-item">工作时段：{{ selectedJob.work_period || '早九晚五' }}</div>
            <div class="desc-item">结算方式：{{ selectedJob.settlement || '月结' }}</div>
            <div class="desc-item">招聘截止时间：{{ selectedJob.deadline || '2025-12-31' }}</div>
            <div class="desc-item">要求：{{ selectedJob.requirements || '18-35周岁' }}</div>
            <div class="salary-benefits">
              <div class="desc-item">薪资待遇：</div>
              <div class="desc-item">每月：{{ selectedJob.money }}</div>
              <div class="desc-item">全勤奖：500</div>
              <div class="desc-item">本工作全程不会收取任何费用，放心咨询。ps:收费的都是骗子</div>
            </div>
          </div>
        </div>

        <!-- HR信息 -->
        <div class="section">
          <h2 class="section-title">HR信息</h2>
          <div class="hr-info">
            <img
              :src="selectedJob.hr.aveter || 'https://picsum.photos/100/100'"
              alt="HR Avatar"
              class="hr-avatar"
            />
            <div class="hr-details">
              <div class="hr-name">
                <span class="hr-name-text">{{ selectedJob.hr.name }}</span>
              </div>
                <div class="hr-name">
                <span class="hr-department">{{ selectedJob.hr.work_number }}</span>
              </div>
              <div class="hr-name">
                <span class="hr-name-text">{{ selectedJob.hr.department }}</span>
                <sapn>&nbsp; &nbsp; </sapn>
                <span class="hr-department">{{ selectedJob.hr.position }}</span>
              </div>
            </div>
          </div>
        </div>

        <!-- 公司信息 -->
        <div class="section">
          <h2 class="section-title">公司信息</h2>
          <div class="company-info">
            <img
              :src="selectedJob.company.logo || 'https://picsum.photos/100/100'"
              alt="Company Logo"
              class="company-logo-lg"
            />
            <div class="company-text">
              <div class="company-name-lg">{{ selectedJob.company.name }}</div>
              <div class="company-desc-lg">{{ selectedJob.company.description }}</div>
              <div class="company-location">
                <el-icon class="meta-icon"><Location /></el-icon>
                {{ selectedJob.company.location }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
</template>

<script setup>
import {
  Location,
  School,
  CollectionTag,
  Star,
  Message
} from '@element-plus/icons-vue';
import { ElEmpty, ElTag, ElButton, ElIcon } from 'element-plus';
import { onMounted, ref, watch ,computed } from 'vue';
import axios from "axios";

const jobLists = ref([]);
const isHoveringIndex = ref(-1);
const selectedJobId = ref(null);
const selectedJob = ref(null);
const salaryColor = '#FF5722';
import { ArrowDown } from '@element-plus/icons-vue'
const searchTimer = ref(null);
const query = ref({
  keyword: "",
  city: "",
  type: null,
  working: null,
  education: ""
});

// 模拟城市数据（实际可从接口获取）
const cityData = {
  hot: ['全国', '北京', '上海', '广州', '深圳', '杭州', '天津', '西安', '苏州', '武汉', '厦门', '长沙', '成都', '郑州', '重庆'],
  A: ['安庆', '鞍山', '安阳'],
  F: ['福州', '佛山', '抚顺'],
  K: ['昆明', '开封', '喀什'],
  P: ['莆田', '平顶山', '濮阳'],
  W: ['无锡', '温州', '武汉']
}

const currentCity = ref('') // 当前选中城市
const dialogVisible = ref(false) // 弹框显隐
const activeTab = ref('hot') // 当前激活的tabs
const CompanyList = ref([])

// 计算当前tabs对应的城市列表
const filteredCities = computed(() => {
  return cityData[activeTab.value] || []
})

// 打开弹框
const openDialog = () => {
  dialogVisible.value = true
}

// 切换tabs
const handleTabClick = (tab) => {
  activeTab.value = tab.name
}

// 选择城市
const selectCity = (city) => {
  currentCity.value = city
  dialogVisible.value = false
  // 可在此处添加：触发父组件事件或调用接口
  console.log('选择的城市：', city)
    getJobList(); // 选择城市后触发搜索

}


// 清空
const clearFilters = () => {
  query.value = {
    keyword: "",
    city: "",
    type: null,
    working: null,
    education: ""
  };
  currentCity.value = ""; // 清空城市选择
  getJobList(); // 重新获取数据
};
const getJobList = () => {
  // 添加防抖（可选）
  clearTimeout(searchTimer.value);
  searchTimer.value = setTimeout(() => {
  const cityParam = currentCity.value || "";
  axios.get("http://127.0.0.1:8000/home/jobList/", {
    params: {
      ...query.value,
      city: cityParam
    }
  })
 .then(res => {
    if (res.status === 200) {
      jobLists.value = res.data.data;
      if (jobLists.value.length > 0) {
        // 有数据时，选中第一条
        selectJob(jobLists.value[0].id, 0);
      } else {
        // 无数据时，清空选中的职位
        selectedJob.value = null;
      }
    } else {
      ElMessage.error(res.data.msg || '获取职位数据失败');
    }
  })
 .catch(err => {
    ElMessage.error('网络异常，请重试');
    console.error('请求职位数据失败：', err);
  });
  }, 300); // 防抖延迟，避免频繁请求
};



const handleMouseEnter = (index) => {
  isHoveringIndex.value = index;
};

const handleMouseLeave = () => {
  isHoveringIndex.value = -1;
};

const selectJob = (id, index) => {
  selectedJobId.value = id;
  // 滚动到当前选中项
  const item = document.querySelectorAll('.job-card')[index];
  if (item) {
    item.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
  }
  // 查找对应职位
  selectedJob.value = jobLists.value.find(job => job.id === id) || null;
};

// 优化5：城市选择联动
const openCityDialog = () => {
  dialogVisible.value = true;
};

// 搜索框回车事件
const handleSearchKeydown = (event) => {
  if (event.key === 'Enter') {
    getJobList();
  }
};

// 监听选中职位变化
watch(selectedJobId, (newId) => {
  if (newId && jobLists.value.length > 0) {
    selectedJob.value = jobLists.value.find(job => job.id === newId) || null;
  }
});
// watch([
//   () => query.value.keyword,
//   () => query.value.type,
//   () => query.value.working,
//   () => query.value.education
// ], getJobList, { immediate: true });


onMounted(() => {
  getJobList();
  selectJob(1,0)
});
</script>

<style scoped>
/* 触发区域样式 */
.city-picker {
  position: relative;
}
.city-trigger {
  display: inline-flex;
  align-items: center;
  color: #008c8c; /* 主色，可根据需求调整 */
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.city-trigger:hover {
  border-color: #008c8c;
}
.city-trigger .el-icon-arrow-down {
  margin-left: 4px;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.dialogVisible .city-trigger .el-icon-arrow-down {
  transform: rotate(180deg);
}

/* 弹框整体样式 */
.city-dialog {
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.city-dialog .el-dialog__header {
  border-bottom: 1px solid #f5f5f5;
  padding: 16px 24px;
}
.city-dialog .el-dialog__title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.city-dialog .el-dialog__body {
  padding: 24px;
}

/* Tabs 样式 */
.city-tabs {
  margin-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}
.city-tabs .el-tabs__item {
  color: #666;
  font-size: 14px;
  padding: 0 16px;
  margin-right: 24px;
}
.city-tabs .el-tabs__item.is-active {
  color: #008c8c;
  border-bottom: 2px solid #008c8c;
}

/* 城市列表样式 */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.city-item {
  width: calc(25% - 12px); /* 四列布局，适配间距 */
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  color: #333;
  background-color: #fff;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.city-item:hover {
  background-color: #fafafa;
  border-color: #008c8c;
  color: #008c8c;
}
/* 顶部导航 */
.top-nav {
  background: linear-gradient(to right, #9aecec, #3890ea);
  color: #fff;
  padding: 8px 20px;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.left-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tab {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s;
}
.tab.active {
  background-color: rgba(255, 255, 255, 0.2);
}
.divider {
  color: #ccc;
}
.add-expect {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}
.add-expect:hover {
  color:#9aecec;
}
.search-section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input {
  width: 280px;
  --el-input-bg-color: rgba(255, 255, 255, 0.9);
  --el-input-border-color: transparent;
  --el-input-hover-border-color: #9aecec;
  border-radius: 20px;
}
.map-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.map-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.search-btn {
  border-radius: 20px;
}

/* 筛选栏 */
.filter-bar {
  background-color: #e6f3f8;
  padding: 8px 20px;
  border-bottom: 1px solid #d9ecf2;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-item {
  display: flex;
  align-items: center;
}
.filter-select {
  --el-select-bg-color: #fff;
  --el-select-border-color: #b3d8e4;
  --el-select-hover-border-color: #409eff;
  --el-select-dropdown-bg-color: #fff;
  border-radius: 20px;
  min-width: 120px;
}
.clear-btn {
  margin-left: auto;
}

.dashboard {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
  background-color: #f5f7fa;
}

.detail {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 左侧 sidebar */
.sidebar {
  width: 320px;
  border-right: 1px solid #eaeaea;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.job-card {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f2f5;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: block;
  position: relative;
  overflow: hidden;
}

.job-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #409EFF, transparent);
  transition: all 0.3s ease;
}

.job-card.hover-scale {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(64, 158, 255, 0.15);
  border-color: #409EFF;
}

.job-card.hover-scale::after {
  height: 100%;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.salary-tag {
  font-size: 14px;
  font-weight: 500;
  color: #ff5722;
  background-color: rgba(255, 87, 34, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.job-meta {
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-icon {
  color: #409EFF;
  font-size: 14px;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.company-details {
  flex: 1;
}

.company-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-desc {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-info {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.location-icon {
  color: #409EFF;
  margin-right: 4px;
}

.city-text {
  color: #666;
}

/* 右侧 main */
.main {
  flex: 1;
  padding: 24px 30px;
  overflow-y: auto;
}

.main::-webkit-scrollbar {
  width: 6px;
}

.main::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.main::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.main::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.detail {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.top-banner {
  background: #e6f7ff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  border-left: 4px solid #409EFF;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-text {
  max-width: 60%;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.banner-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 20px;
}

.header-left {
  flex: 1;
  margin-right: 20px;
}

.job-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #333;
}

.salary-box {
  margin-bottom: 15px;
}

.salary-value {
  font-size: 20px;
  font-weight: 600;
  color: #ff5722;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #666;
  font-size: 14px;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section {
  margin-bottom: 35px;
}

.section-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
  color: #333;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #409EFF;
}

.tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.desc-content {
  line-height: 1.8;
  color: #666;
  font-size: 15px;
}

.desc-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.salary-benefits {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid #e0e6ed;
}

.hr-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hr-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.hr-details {
  flex: 1;
}

.hr-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hr-work-number, .hr-department {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.hr-position {
  font-size: 14px;
  color: #999;
}

.company-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.company-logo-lg {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.company-text {
  flex: 1;
}

.company-name-lg {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.company-desc-lg {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.company-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #666;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>